// ==================================================
// inner Class test
// Anonymous inner class
// make : pwg
// date : 2003.
// ==================================================
package h_innerClass;

import java.awt.*; // Frame을 사용하기 위해
import java.awt.event.*; // ActionListenner를 사용하기 위해

public class innerClass1 extends Frame 
{
	Button exitButton = new Button("Exit");
	public innerClass1()
	{
		this.setSize(400,400);
		this.setLayout(null);
	
		exitButton.setBounds(100,100,100,100);
		exitButton.addActionListener(
			new ActionListener()
			{
				public void actionPerformed(ActionEvent ev)
				{
					System.exit(0);
				}
			}	
			
		);
		this.add(exitButton);
	}
	
	public static void main(String args[])
	{
		innerClass1 ic=new innerClass1();
		ic.setVisible(true);
	}
	
	


}
